#pragma once
#include "resource.h"
#define WM_MSG_AUDIO_ACCEPT	WM_USER+1004
#define WM_MSG_AUDIO_HANGUP WM_USER+1005
class AudioDlg : public CAxDialogImpl<AudioDlg>,public CUpdateUI<AudioDlg>,public CMessageFilter,public CIdleHandler
{
public:
	enum { IDD = IDD_DIALOG_AUDIO };
	virtual BOOL PreTranslateMessage(MSG *pMSG)
	{
		if(m_hWnd)
			return CWindow::IsDialogMessage(pMSG);
		return false;
	}
	virtual BOOL OnIdle()
	{
		return false;
	}
	BEGIN_UPDATE_UI_MAP(AudioDlg)
	END_UPDATE_UI_MAP()

	BEGIN_MSG_MAP(AudioDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		MESSAGE_HANDLER(WM_SIZE, OnSize)
		COMMAND_ID_HANDLER(IDC_BUTTON_ACCEPT, OnAccept)
		COMMAND_ID_HANDLER(IDC_BUTTON_HANGUP, OnHangUp)
		CHAIN_MSG_MAP(CUpdateUI<AudioDlg>)
	END_MSG_MAP()
	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnSize(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled);
	LRESULT OnAccept(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	LRESULT OnHangUp(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	void	SetInitiative(bool bi);
	void	SetVideoIng(bool bing);
};